home *** CD-ROM | disk | FTP | other *** search
/ Time Warp / Time Warp.iso / mac / Time Warp / Time Warp.DXR / Shared_38_LocateSprite.ls < prev    next >
Encoding:
Text File  |  1997-05-23  |  667 b   |  23 lines

  1. on LocateSprite iconCastNum
  2.   global IconCount, Hand
  3.   if IconCount > 13 then
  4.     alert("Keine weiteren Icons m├╢glich. Gebrauche sie bevor Du andere sammeln kannst.")
  5.     exit
  6.   end if
  7.   set limit to 33 + IconCount
  8.   repeat with i = 33 to limit
  9.     if the castNum of sprite i = 600 then
  10.       puppetSprite(i, 1)
  11.       set the castNum of sprite i to iconCastNum
  12.       set the moveableSprite of sprite i to 1
  13.       set the locV of sprite i to 455
  14.       set the locH of sprite i to 615 - ((i - 33) * 48)
  15.       set the cursor of sprite i to Hand
  16.       updateStage()
  17.       set IconCount to IconCount + 1
  18.       exit repeat
  19.     end if
  20.   end repeat
  21.   updateSpritelist()
  22. end
  23.